package com.zy.springboot_nahua4.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

@Data
//@Table

public class Student implements Serializable {
    @TableId(type=IdType.AUTO)
    private Integer id;
    private String name;
    private Integer age;
    private String gender;
    private String photo;
    @TableField(exist = false)
    @JsonIgnore
    private MultipartFile photofile;
}
